<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户登录</title>
    <!-- 开发环境可临时使用CDN，生产环境需按提示安装 -->
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>

<body class="bg-gray-100 min-h-screen flex items-center justify-center p-4">
    <div class="w-full max-w-md bg-white rounded-lg shadow-md overflow-hidden">
        <div class="bg-blue-600 p-6 text-center">
            <h1 class="text-white text-2xl font-bold">登录</h1>
            <p class="text-blue-100 mt-1">请输入账号信息</p>
        </div>

        <div class="p-6">
            <!-- 修正表单标签闭合位置 -->
            <form action="/Login.html" method=GET">
                <div class="mb-4">
                    <label class="block text-gray-700 text-sm mb-1" for="username">
                        用户名/邮箱
                    </label>
                    <div class="relative">
                        <span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
                            <i class="fa fa-user"></i>
                        </span>
                        <input type="text" id="username" name="username"
                               class="w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg 
                                      focus:border-blue-500 focus:ring-2 focus:ring-blue-200 focus:outline-none"
                               placeholder="请输入" required>
                    </div>
                </div>

                <div class="mb-6">
                    <div class="flex justify-between mb-1">
                        <label class="block text-gray-700 text-sm" for="password">
                            密码
                        </label>
                        <a href="#" class="text-blue-600 text-sm hover:underline">忘记密码?</a>
                    </div>
                    <div class="relative">
                        <span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
                            <i class="fa fa-lock"></i>
                        </span>
                        <input type="password" id="password" name="password"
                               class="w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg 
                                      focus:border-blue-500 focus:ring-2 focus:ring-blue-200 focus:outline-none"
                               placeholder="请输入" required>
                    </div>
                </div>

                <button type="submit" 
                        class="w-full bg-blue-600 text-white py-2.5 px-4 rounded-lg font-medium
                               hover:bg-blue-700 transition-colors duration-300">
                    登录
                </button>
            </form>

            <div class="my-6 flex items-center">
                <div class="flex-1 h-px bg-gray-200"></div>
                <span class="mx-3 text-gray-500 text-sm">其他登录方式</span>
                <div class="flex-1 h-px bg-gray-200"></div>
            </div>

            <div class="grid grid-cols-2 gap-3">
                <button class="flex items-center justify-center gap-2 border border-gray-300 rounded-lg py-2
                               hover:bg-gray-50 transition-colors duration-300">
                    <i class="fa fa-weixin text-green-500"></i>
                    <span>微信登录</span>
                </button>
                <button class="flex items-center justify-center gap-2 border border-gray-300 rounded-lg py-2
                               hover:bg-gray-50 transition-colors duration-300">
                    <i class="fa fa-qq text-blue-500"></i>
                    <span>QQ登录</span>
                </button>
            </div>

            <div class="mt-6 text-center text-gray-600">
                没有账号? <a href="#" class="text-blue-600 font-medium hover:underline">立即注册</a>
            </div>
        </div>
    </div>
</body>
</html>